import wordcloud
# 构建词云对象w，设置词云图片宽、高、字体、背景颜色等参数

w = wordcloud.WordCloud()
w.generate('and that government of the people, by the people, for the people, shall not perish from the earth.')
w.to_file('output1.png')